package com.example.demoserver.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * 
 * @TableName inte_log
 */
@TableName(value ="inte_log")
public class InteLog implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Object id;

    /**
     * 
     */
    private String loginfo;

    /**
     * 
     */
    private Object logtype;

    /**
     * 
     */
    private String logtime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Object getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Object id) {
        this.id = id;
    }

    /**
     * 
     */
    public String getLoginfo() {
        return loginfo;
    }

    /**
     * 
     */
    public void setLoginfo(String loginfo) {
        this.loginfo = loginfo;
    }

    /**
     * 
     */
    public Object getLogtype() {
        return logtype;
    }

    /**
     * 
     */
    public void setLogtype(Object logtype) {
        this.logtype = logtype;
    }

    /**
     * 
     */
    public String getLogtime() {
        return logtime;
    }

    /**
     * 
     */
    public void setLogtime(String logtime) {
        this.logtime = logtime;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        InteLog other = (InteLog) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getLoginfo() == null ? other.getLoginfo() == null : this.getLoginfo().equals(other.getLoginfo()))
            && (this.getLogtype() == null ? other.getLogtype() == null : this.getLogtype().equals(other.getLogtype()))
            && (this.getLogtime() == null ? other.getLogtime() == null : this.getLogtime().equals(other.getLogtime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getLoginfo() == null) ? 0 : getLoginfo().hashCode());
        result = prime * result + ((getLogtype() == null) ? 0 : getLogtype().hashCode());
        result = prime * result + ((getLogtime() == null) ? 0 : getLogtime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", loginfo=").append(loginfo);
        sb.append(", logtype=").append(logtype);
        sb.append(", logtime=").append(logtime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}